unit FormPerguntaInformePeriodoUnit;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Buttons;

type
  TFormPerguntaInforme = class(TForm)
    ComboBox1: TComboBox;
    Label1: TLabel;
    Label2: TLabel;
    ComboBox2: TComboBox;
    Label3: TLabel;
    BitbtnConfirmar: TBitBtn;
    BitBtnCancelar: TBitBtn;
    procedure BitbtnConfirmarClick(Sender: TObject);
    procedure BitBtnCancelarClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
    lconfirmou : Boolean;
    strReferencia : String;
  end;

var
  FormPerguntaInforme: TFormPerguntaInforme;

implementation

{$R *.dfm}

uses FormPrincipalCampoAplicacaoUnit;

procedure TFormPerguntaInforme.BitBtnCancelarClick(Sender: TObject);
begin
  lconfirmou := False;
  strReferencia := '';
  close;
end;

procedure TFormPerguntaInforme.BitbtnConfirmarClick(Sender: TObject);
begin

    strReferencia := ComboBox1.Text + '/'+ComboBox2.Text;
    lconfirmou := True;
    Close;

end;

end.
